package com.leiyuee.designpattern.strategy.strategy;

import org.springframework.stereotype.Component;

/**
 * @Author : Yu_Lei
 * @create 2024/5/8
 */
@Component("alipay")
public class AlipayStrategy implements PayStrategy{
    @Override
    public String pay(double amount) {
        return "使用支付宝支付了【" + amount + "】元";
    }
}
